<?php
switch (ZKF::get('s')){
	case 'verify':
		ZKF::S('Common/verify');
		break;
	case 'check_verify':
		$_return = ZKF::S('Common/check_verify',ZKF::get('param'));
		echo json_encode($_return);
		break;
	case 'reg_upload':
		$_return = ZKF::S('Register/upload');
		echo 'Public/Upload/photo/m_'.$_return[0]['savename'];
		break;
	case 'reg_check_username':
		$_return = ZKF::S('Register/check_username',ZKF::get('param'));
		echo json_encode($_return);
		break;
	case 'reg_form':
		if(ZKF::get('lock')==md5("zkf".(ZKF::get('lockey')))){
			$_return = ZKF::S('Register/form',ZKF::get());
			echo json_encode($_return);
		}
		break;
	case 'login_form':
		if(ZKF::get('lock')==md5("zkf".(ZKF::get('lockey')))){
			$_return = ZKF::S('Login/form',ZKF::get());
			echo json_encode($_return);
		}
		break;
}
?>